package com.youth.entity.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.youth.result.StatusEnum;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName CommodityTypeTwo
 * @Description: TODO 商品类型二级持久化对象。
 * @Author yjwu
 * @Date 2019/10/21 20:48
 **/
@Data
@Builder
public class CommodityTypeTwo implements Serializable {
    private static final Long serialVersionUID = 1L;
    private int id;
    private String name;
    //    商品类型一级id
    private int typeOneId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    @Builder.Default
    private int status = StatusEnum.INUSE.getStatus();
}
